Post

Replies

Boosts

Views

Activity

Is it possible only the watch app to be the main function?
I'm thinking of an app where only the watch app is the main function. However, since all functions are not available in the Watch app, we are thinking about handling some functions in the iPhone/iPad app. So, the Apple Watch standalone app seems impossible. In the iPhone/iPad, we are thinking of managing files and converting those files and transferring them to the Watch app. And the watch app plays the received file. (The main function is to play the file) The iPhone/iPad app does not play files. In the above case, I am wondering if our app can pass the Apple review.
0
0
282
Dec ’20
KCTKernAttributeName option not working in CTFrameGetLines
KCTKernAttributeName option not working in CTFrameGetLines I am trying to get a multiline of text from an NSMutableAttributedString via CTFrameGetLines. All other options are applied, but kCTKernAttributeName option is not reflected in CTFrameGetLines. Even if I put the value of kCTKernAttributeName in NSMutableAttributedString, it behaves as if there is no kCTKernAttributeName value. Is there any solution or cause?
0
0
591
Jan ’21
Apple's Policy on Rewarded Video Ads
In the app, when users view AdMob rewarded video ads, banner ads are removed for a certain period of time and some additional features are provided. However, we had previously supported rewarded video ads without in-app purchases in the app, but were rejected by the app review. And after adding in-app purchases, it passed the review. Could it be that Apple's policy does not yet allow only rewarded video ads to be added to the app? Or is there any way ?
0
0
645
Aug ’21
Error when using Live Text API
I am developing a function using Live Text. (I used ImageAnalyzer and ImageAnalysisInteraction.) When executed, the following error log is displayed and the Live Text Button is displayed but not clicked or highlighted. That is, it does nothing. [Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem. [Unknown process name] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable. [api] -[CIImage initWithCVPixelBuffer:options:] failed because the buffer is nil. Are there any possible causes and solutions for this not working? Or is there a setting I'm missing in order to use LiveText? Below is part of the code. Changing preferredInteractionTypes to all types doesn't change anything. UIImageViews are displayed by switching left and right through UIPageViewController and calling the LiveText function. Task { var analyzer:ImageAnalyzer? = ImageAnalyzer()             if analyzer == nil {                 return             }             let configuration = ImageAnalyzer.Configuration([.text])             do {                 let pAnalysis = try await analyzer!.analyze(image!, configuration: configuration)                 DispatchQueue.main.async {                                          //interaction!.preferredInteractionTypes = .automatic                     interaction.preferredInteractionTypes = .textSelection                     //interaction!.preferredInteractionTypes = .dataDetectors                     //interaction!.preferredInteractionTypes = [.textSelection, .dataDetectors]                     //interaction.preferredInteractionTypes = [.textSelection, .dataDetectors, .automatic]                     interaction.selectableItemsHighlighted = true                     interaction.analysis = pAnalysis                     interaction.setContentsRectNeedsUpdate()                 }             } catch {}             analyzer = nil }
0
1
1.4k
Sep ’22
In Live Text API, text selection or clicking the highlight button on the right does not work
I am implementing Live Text function using ImageAnalysisInteraction and ImageAnalyzer. After loading an image file into UIImageView , I am trying to implement a function to select like a TextView using Live Text function. On the right side of the UIImageView, a button to change the Live Text highlight state is displayed. However, there is a phenomenon that this button cannot be clicked. Also, even if you change the highlight state to Live Text, it is not selected like UITextView. imageView.addInteraction(interaction) I added an interaction to the imageview like this. Even if I keep changing preferredInteractionTypes to multiple types, there is no choice. interaction.view!.isUserInteractionEnabled = true imageView.isUserInteractionEnabled = true So I also changed the isUserInteractionEnabled value to true . Have any of you solved this problem?
0
0
1k
Oct ’22
Is there any way to fix screen rotation in iPad apps that don't use the Requires Full Screen option?
Is there a way to lock the rotation of the app when the app is in full screen state in an iPad app that doesn't use Requires Full Screen? Disable Requires Full Screen option func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) I know that even if the above function returns a value that locks the rotation, the device is not. But iPad users who use my app send me an email asking if I can provide a function to lock the rotation of the app. I would like to know if there is a way to lock the rotation even when in full screen. Or can't Apple support it in a future update?
0
0
732
Oct ’22
AVSpeechSynthesizer continues to play even after playback stops and the app crashes (iOS 16+)
Currently, there is an issue that only occurs on iOS 16 devices. We provide TTS function to pronounce Text using AVSpeechSynthesizer. When I stop AVSpeechSynthesizer, sometimes the sentence is played without stopping. After that, if we put nil or declare a new AVSpeechSynthesizer object like the code below "self.synthesizer = nil or self.synthesizer = AVSpeechSynthesizer()" The app crashes. This issue was previously posted on the forum https://developer.apple.com/forums/thread/716963 It's like this problem. (It is believed to be the cause of this problem.) This phenomenon occurs randomly when playing, stopping, and repeating a sentence. So it is not easy to reproduce. We're getting crash reports from our app, but it's only happening on iOS 16 devices. Does anyone have a cause or solution for this symptom? I've been looking for a solution for a few weeks now and haven't been able to find a suitable solution. We believe this may be a bug in iOS 16. I am currently testing on the latest version of iOS 16.0.3. It still happens occasionally. If we can reproduce this phenomenon with 100% probability, we will give feedback to Apple, but we have to repeat it several times, so we do not think about feedback. and additionally Even when leaving the current screen, the app dies after this happens. If we nil or not initialize the AVSpeechSynthesizer object after stopping the TTS loop in our app, "self.synthesizer!.speak(utterance)" As in the code above, there is a phenomenon that playback does not play even if you try to play it.
0
0
785
Oct ’22
An issue where the content of the dynamic island disappears and is displayed repeatedly
An issue where the content of the dynamic island disappears and is displayed repeatedly The issue is similar to the one below. https://developer.apple.com/forums/thread/717795 Currently using the function to make the bottom home indicator disappear with setNeedsUpdateOfHomeIndicatorAutoHidden In case the status bar information is always displayed at the top As the bottom home indicator appears and disappears, the content of the dynamic island also appears and disappears. Although this is Apple's intention, users who watch the content for a long time may think that this is a bug or an error in the app because the dynamic island at the top repeatedly appears and disappears repeatedly. Our app is an app for viewing documents. At the bottom, there are many users who do not like that the home indicator is always on, so a function (optional) that automatically disappears unless you touch it is implemented. And the status bar information is always displayed at the top of the content viewing screen. (battery or time information) In that situation, when you switch to a tab page, the home indicator and dynamic island icon or text at the bottom are displayed and disappear again if you do not tap. This phenomenon repeats over and over again as the pages are turned. (Because users keep repeating tabs as they turn pages) While viewing the content, the icon or text of the Dynamic Island keeps appearing and disappearing. For example, the issue arises when the content is always displayed on the dynamic island as shown below. Alarm triggered by Apple's default app Connect to other Bluetooth devices Tethering Hopefully Apple will provide an option to separate the disappearance of the bottom home bar from the disappearance of the dynamic island content on the top. Set the option to make the home bar disappear to True, and we hope to provide an option where the content of the dynamic island is always maintained even when the status bar is displayed. video link https://youtube.com/shorts/0Qn6qTELxmg?feature=share
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
1.9k
Oct ’22
The problem that specific character height and spacing 0 cannot be set using NSMutableAttributedString
We are adding a function to change the height and spacing of only certain characters (NewLine) using NSMutableAttributedString. Set font size to 0 and lineSpacing to 0. For characters other than specific characters, enter the font size and lineSpacing separately. (e.g. font size = 28.0 / lineSpacing = 16.0) When applied to UITextView , the space in that part is higher than the lineSpacing set for other lines. (In other words, I set the font size and linespace to 0 for a blank line, but the height occurs in the blank line.) I thought that by setting the font size and lineSpacing to 0, the line height would be 0. But it doesn't appear that way. Does anyone know of this issue? If there is something I don't understand, please let me know, it will help me to solve it. The iOS version is being developed in the 16.1 environment.
0
0
1.1k
Oct ’22
Is there any way to get the text content displayed on the screen in WKWebView ?
I'm trying to get all of the text displayed on the screen in a WKWebView . First of all, the text inside the html file to be loaded is broken. So use evaluateJavaScript to call "document.body.textContent" or "document.body.innerText". Doing so will return the broken text verbatim. However, the content displayed on the webview screen is not broken and displayed normally. I want to know how to get all normal text rendered on this webview screen.
0
0
877
Feb ’23
How can I get the String transformed to fit the UIFont's table?
How can I get the String transformed to fit the UIFont's table? The characters (Unicode) included in the original String are all wrong. This original String is intended to be displayed normally when displayed or rendered in a UITextView using a specific UIFont. In other words, both the original String and UIFont files are not normal. Even after applying it to UITextView or UILabel, the rendering is displayed as normal characters, but when I import it as a String variable as text and display it in the log, it is still abnormal original characters. So, in the case of UITextView, even if the user makes a selection and then copies or searches, it does not work normally. I want to get the rendered (converted) String of this original String through this specific UIFont.
0
0
1.2k
Feb ’23
Watch App Review & Sales Questions
Apple has two watch app cases below. Watch App Only Phone App + Watch App (uncheck supports running without ios app installation option) I am trying to distribute it in the second situation above, "phone app + watch app". We are currently developing/researching a watch app. So, I have a few questions. First case: Documents can only be viewed on the watch app. You cannot view documents in the phone app, but it converts and transfers files from the phone app to the watch app. You can view the file by opening it in the watch app. Can a case like this pass the app review? Second case: In phone app + watch app, when both apps have the ability to view files Is it possible to sell the phone app and the watch app separately for a fee?
0
0
685
Mar ’23